package com.lu.util;

import com.lu.bean.AppException;
import com.lu.constant.ErrorEnum;
import org.springframework.util.StringUtils;

/**
 * @author luke
 * @className ParamUtil
 * @description
 * @date 2021/07/14 14:22
 */
public class ParamUtil {

    public static void checkStringEmpty(String param, String name) throws AppException{
        if(!StringUtils.hasLength(param)) {
            throw new AppException(ErrorEnum.PARAM_EMPTY.code,name+"不能为空");
        }
    }
}
